import numpy as np

xarr = np.array((0.1, 0.2, 0.1, 0.6), dtype=np.float32)
print(xarr)

xsum = sum(xarr)
print(xsum)

xsum_e = sum(np.exp(xarr))
print(xsum_e)

xlog = np.log(xsum_e)
print(xlog)
